package chapter_twentyFour.text354;

/**
 * Data time:2021/11/22 16:11
 * StudentID:2019112118
 * Author:hgw
 * Description: 儿童票折扣类，充当具体策略类
 */
public class VIPDiscount implements Discount{

    private final double DISCOUNT = 0.5;
    @Override
    public double calculate(double price) {
        System.out.println("VIP票：");
        System.out.println("增加积分！");
        return price * DISCOUNT;
    }
}
